package com.ruoyi.system.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.AppDynamicComment;
import com.ruoyi.system.domain.AppDynamicLike;

/**
 * 评论Service接口
 * 
 * @author ruoyi
 * @date 2023-02-27
 */
public interface IAppDynamicCommentService extends IService<AppDynamicComment>
{
    /**
     * 查询评论
     * 
     * @param id 评论主键
     * @return 评论
     */
    public AppDynamicComment selectAppDynamicCommentById(Long id);

    /**
     * 查询评论列表
     * 
     * @param appDynamicComment 评论
     * @return 评论集合
     */
    public List<AppDynamicComment> selectAppDynamicCommentList(AppDynamicComment appDynamicComment);

    /**
     * 新增评论
     * 
     * @param appDynamicComment 评论
     * @return 结果
     */
    public int insertAppDynamicComment(AppDynamicComment appDynamicComment);

    /**
     * 修改评论
     * 
     * @param appDynamicComment 评论
     * @return 结果
     */
    public int updateAppDynamicComment(AppDynamicComment appDynamicComment);

    /**
     * 批量删除评论
     * 
     * @param ids 需要删除的评论主键集合
     * @return 结果
     */
    public int deleteAppDynamicCommentByIds(Long[] ids);

    /**
     * 删除评论信息
     * 
     * @param id 评论主键
     * @return 结果
     */
    public int deleteAppDynamicCommentById(Long id);

    List<AppDynamicComment> selectAppDynamicCommentList2(AppDynamicComment appDynamicComment);

    AjaxResult commentDynamic(Long userId, Long id, String content);

    AjaxResult replyComment(Long userId, Long commentId, String content);

    int countByCommentIdAndUserId(Long commentId, Long userId);

    AjaxResult removeComment(Long commentId);
}
